from selenium.webdriver.common.by import By

from utils.page_base import PageBase #导入页面基类


#首页
class PageUI1(PageBase):
    url = "/"
    loc_login=By.CSS_SELECTOR,"a[href='/simple/login']"

    def __init__(self, driver, base_url):
        PageBase.__init__(self, driver, base_url)

    #打开网页
    def openUrl(self):
        self.open(PageUI1.url)

    #点击登录
    def click_login(self):
        self.click(PageUI1.loc_login)